package com.realtyManage.springboot.Dao;


import com.realtyManage.springboot.Model.Do.CustomerLevelTime;
import com.realtyManage.springboot.Model.Do.UserTask;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 * 设置等级时间
 *
 * @author 杭州素色网络科技有限公司
 * @since 2019-09-27
 */

@Repository
public interface CustomerLevelTimeRepository extends JpaRepository<CustomerLevelTime, Integer>, JpaSpecificationExecutor<CustomerLevelTime> {

    @Modifying
    @Transactional
    @Query(value = "delete customer_level_time WHERE id in (?1)",nativeQuery=true)
    int deleteLevelTime(String ids);

}
